/* Layout */
import Layout from '@/layout'
// baseModuleRouter
const baseModuleRouter = {
  path: '/base',
  component: Layout,
  name: 'BaseModule',
  redirect: 'noRedirect',
  meta: {
    title: '基础数据',
    icon: 'table',
    permissions: ['/base']
  },
  children: [
    {
      path: '/base/dict',
      name: 'BaseDict',
      redirect: 'noRedirect',
      component: () => import('@/views/empty'),
      meta: {
        title: '数据字典维护',
        icon: 'dictionary',
        permissions: ['/base/dict']
      },
      children: [
        {
          path: '/base/dictInfo',
          component: () => import('@/views/base/dict/dictInfo'),
          name: 'DictInfo',
          meta: {
            title: '数据字典管理',
            icon: 'dictionary',
            permissions: ['/base/dictInfo']
          }
        },
        {
          path: '/base/dictArea',
          component: () => import('@/views/base/dict/dictArea'),
          name: 'DictArea',
          meta: {
            title: '行政区划管理',
            icon: 'area',
            permissions: ['/base/dictArea']
          }
        },
        {
          path: '/base/dictCountry',
          component: () => import('@/views/base/dict/dictCountry'),
          name: 'DictCountry',
          meta: {
            title: '国别地区管理',
            icon: 'country',
            permissions: ['/base/dictCountry']
          }
        },
        {
          path: '/base/dict/Currency',
          component: () => import('@/views/base/dict/dictCurrency'),
          name: 'DictCurrency',
          meta: {
            title: '货币种类管理',
            icon: 'currency',
            permissions: ['/base/dictCurrency']
          }
        },
        {
          path: '/base/dictIndustry',
          component: () => import('@/views/base/dict/dictIndustry'),
          name: 'DictIndustry',
          meta: {
            title: '经济行业分类管理',
            icon: 'industry',
            permissions: ['/base/dictIndustry']
          }
        }
      ]
    },
    {
      path: '/base/auth',
      redirect: 'noRedirect',
      component: () => import('@/views/empty'),
      name: 'Permission',
      meta: {
        title: '权限管理',
        icon: 'auth',
        permissions: ['/base/auth']
      },
      children: [
        {
          path: '/base/auth/org',
          component: () => import('@/views/base/auth/orgInfo'),
          name: 'OrgInfo',
          meta: {
            title: '机构维护',
            icon: 'organization',
            permissions: ['/base/auth/org']
          }
        },
        {
          path: '/base/auth/user',
          component: () => import('@/views/base/auth/authUser'),
          name: 'AuthUser',
          meta: {
            title: '用户管理',
            icon: 'authUser',
            permissions: ['/base/auth/user']
          }
        },
        {
          path: '/base/auth/role',
          component: () => import('@/views/base/auth/authRole'),
          name: 'AuthRole',
          meta: {
            title: '角色管理',
            icon: 'authRole',
            permissions: ['/base/auth/role']
          }
        },
        {
          path: '/base/auth/resource',
          component: () => import('@/views/base/auth/authResource'),
          name: 'AuthResource',
          meta: {
            title: '资源管理',
            icon: 'authResource',
            permissions: ['/base/auth/resource']
          }
        }
      ]
    },
    {
      path: '/base/scheduleJob',
      component: () => import('@/views/base/scheduleJob'),
      name: 'ScheduleJob',
      meta: {
        title: '定时任务管理',
        icon: 'scheduleJob',
        permissions: ['/base/scheduleJob']
      }
    },
    {
      path: '/base/holiday',
      component: () => import('@/views/base/holiday'),
      name: 'Holiday',
      meta: {
        title: '节假日维护',
        icon: 'holiday',
        permissions: ['/base/holiday']
      }
    },
    {
      path: '/base/timeline',
      component: () => import('@/views/base/timeline'),
      name: 'TimeLine',
      meta: {
        title: '用户操作日志',
        icon: 'log',
        permissions: ['/base/timeline']
      }
    },
    {
      path: '/base/json',
      component: () => import('@/views/base/jsontext'),
      name: 'JsonText',
      meta: {
        title: 'Json信息管理',
        icon: 'log',
        permissions: ['/base/json']
      }
    }
  ]
}

export default baseModuleRouter
